<template>
  <div>
    <van-cell :title="item.month+'月'" :value="item.income" size="large" v-for="(item,index) in IncomesData" :key="index"/>
  </div>
</template>

<script>
import { GetCustIncomeData } from "@/request/api";
export default {
  data() {
    return {
      IncomesData: [],
    };
  },
  created() {
    GetCustIncomeData(this.$route.query.id).then((res) => {
      this.IncomesData = res.data.datas[1].data;
    });
  },
};
</script>
 
<style lang = "less" scoped>
.van-cell {
  margin-bottom: 10px;
}
.van-cell__value {
  color: blue;
}
</style>